package main

import "fmt"

func main() {
	s := Student{Person{"mike", 'f', 17}, 444, "sh"}
	s.printInfo()
}

type Student struct {
	Person
	id   int
	addr string
}

type Person struct {
	name string
	sex  byte
	age  int
}

func (tmp *Person) printInfo() {
	fmt.Printf(" name = %s , sex = %c , age = %d \n", tmp.name, tmp.sex, tmp.age)
}
